package com.syedu.day06.homework;

/**
 * description：
 * @author Administrator
 * @date 2022/3/15 15:37
 */
public class TestComputer {
    public static void main(String[] args) {
        //创建屏幕信息
        Screen screen = new Screen("LED",32,"三星");
        //创建电脑对象
        //Computer computer = new Computer("IBM",8000.0,"这是一台性能强劲的办公笔记本电脑.");
        //电脑和屏幕整合
        //computer.screen = screen;

        //创建电脑的同时就把屏幕对象绑定在一起
        Computer computer = new Computer("IBM",38000.0,"这是一台性能强劲的办公笔记本电脑.",screen);
        //打印电脑信息
        computer.printInfo();
    }
}